<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('wx/wxpro/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('wx/wxpro/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wx/wxpro/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('wx/wxpro/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>
                        <a href="javascript:;" class="btn btn-primary  btn-pro btn-disabled disabled {:$auth->check('wx/wxpro/config')?'':'hide'}" title="{:__('批量修改')}" ><i class="fa fa-cog"></i> {:__('批量修改')}</a>
                        <div class="dropdown btn-group {:$auth->check('wx/wxpro/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                {volist name="wxProductType" id="vo"}
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="type={$vo.id}"><i class="fa fa-eye"></i> {$vo.name}</a></li>
                                {/volist}
                            </ul>
                        </div>
                        <a href="javascript:;" class="btn btn-warning btn-disabled disabled btn-copys {:$auth->check('wx/wxpro/copys')?'':'hide'}" title="{:__('批量复制（名称替换）')}" ><i class="fa fa-refresh"></i> 批量复制</a>
                        <a href="javascript:;" class="btn btn-primary btn-disabled disabled btn-adds {:$auth->check('wx/wxpro/adds')?'':'hide'}" title="{:__('快捷添加成品')}" ><i class="fa fa-refresh"></i> 快捷添加成品</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('wx/wxpro/edit')}" 
                           data-operate-del="{:$auth->check('wx/wxpro/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script>
  var typeList = {$typeList|json_encode};
</script>
